#! /bin/bash

echo 'start build vue-basic.'

npm run build

tar -cvf dist.tar dist/

scp -r dist.tar root@106.14.165.51:/root/static/cart

ssh root@106.14.165.51 'sh /root/static/sbin/vue-cart.sh'

echo 'vue-basic build succ.'